﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="CustomerType.aspx.cs" Inherits="Wicresoft.RDW.Content.CustomerType" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<script language="javascript" type="text/javascript">
    $(function () {
        $("#<%=btnAdd.ClientID %>").click(checkAllTextValid);
        $("#<%=btnRevamp.ClientID %>").click(checkAllTextValid);
        $("#<%=btnCancel.ClientID %>").click(checkAllTextValid);
    });     
   </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="center">
        <div class="box">
            <div class="main_title">
                <h2>
                    <%=Resources.NameResource.CustomerManagement%></h2>
            </div>
            <div class="line_gray">
            </div>
            <br />
            <div class="MyApplicationContent2" style="border-top: 0px">
                <div class="MyApplicationContent_right">
                    <asp:Button ID="btnShow" runat="server" OnClick="btnShowOnClick" />
                </div>
                <div class="clear">
                </div>
            </div>
            <asp:PlaceHolder ID="PlaceHolder" runat="server" Visible="false">
                <div class="CustomerManagement">
                    <table width="100%" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr class="dcTableItem2">
                                <td class="LeftSpace">
                                </td>
                                <td class="CustomerM">
                                    <%=Resources.NameResource.Customer_TypeName_CN %>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtName_CN" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvName_CN" runat="server" ErrorMessage="" ControlToValidate="txtName_CN"
                                        SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>&nbsp&nbsp
                                </td>
                            </tr>
                            <tr class="dcTableItem2">
                                <td>
                                </td>
                                <td class="CustomerM">
                                    <%=Resources.NameResource.Customer_TypeName_EN %>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtName_EN" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvName_EN" runat="server" ErrorMessage="" ControlToValidate="txtName_EN"
                                        SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>&nbsp&nbsp
                                </td>
                            </tr>
                            <tr class="dcTableItem2">
                                <asp:PlaceHolder ID="phType" runat="server" Visible="false">
                                    <td>
                                    </td>
                                    <td class="CustomerM">
                                        <asp:Label ID="lblType" runat="server" Text="Label"></asp:Label>&nbsp
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlType" runat="server">
                                            <asp:ListItem Value="0">无从属 / None</asp:ListItem>
                                            <asp:ListItem Value="1">国内 / Domestic</asp:ListItem>
                                            <asp:ListItem Value="2">国外 / Foreign</asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:Label ID="lblId" runat="server" Text="" Visible="false"></asp:Label>
                                    </td>
                                </asp:PlaceHolder>
                            </tr>
                            <tr class="dcTableItem">
                                <td>
                                </td>
                                <td colspan="2">
                                    <div class="sqbtnPane">
                                        <p class="sqbtn">
                                            <asp:LinkButton ID="btnAdd" runat="server" Text="Button" OnClick="btnAddOnClick" /></p>
                                        <p class="sqbtn">
                                            <asp:LinkButton ID="btnRevamp" runat="server" Text="Button" OnClick="btnRevampOnClick"
                                                CssClass="sqbtn" /></p>
                                        <p class="sqbtn">
                                            <asp:LinkButton ID="btnCancel" runat="server" Text="Button" OnClick="btnCancelOnClick"
                                                CssClass="sqbtn" CausesValidation="false" /></p>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <br />
            </asp:PlaceHolder>
            <div class="HistoryApplicationContent">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tbody>
                        <tr class="dcTableHeader">
                            <th style="width: 350px;">
                                <asp:Label ID="lblNameCN" runat="server" Text=""></asp:Label>
                            </th>
                            <th style="width: 440px;">
                                <asp:Label ID="lblNameEN" runat="server" Text=""></asp:Label>
                            </th>
                            <th style="width: 150px;">
                                <asp:Label ID="lblManage" runat="server" Text=""></asp:Label>
                            </th>
                        </tr>
                        <tr class="dcTableAlternatingItem">
                            <td class="last" align="left">
                                级别1
                            </td>
                            <td class="last" align="left">
                                Class1
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <asp:GridView ID="gvCustType1" runat="server" AutoGenerateColumns="false" DataKeyNames="Id"
                                    OnRowUpdating="gvCustRevamp1_Updating" ShowHeader="false" OnRowDataBound="GvCustType_RowDataBound"
                                    Width="100%" HeaderStyle-CssClass="dcTableHeader" RowStyle-CssClass="dcTableItem"
                                    AlternatingRowStyle-CssClass="dcTableAlternatingItem">
                                    <Columns>
                                        <asp:BoundField ItemStyle-Width="200" />
                                        <asp:BoundField ItemStyle-Width="210" />
                                        <asp:TemplateField ShowHeader="true" ItemStyle-Width="100">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lbtnRevamp1" runat="server" CausesValidation="False" CommandName="Update"
                                                    Text="<%#Resources.NameResource.Btn_Edit%>" CssClass="CommandButton"></asp:LinkButton>
                                                <%--                                                &nbsp
                                                <asp:LinkButton ID="lbtnDelete1" runat="server" CausesValidation="False" CommandName="Delete"
                                                    OnClientClick="return confirm('确认要删除吗？');" Text="删除" CssClass="CommandButton"
                                                    disabled="disabled"></asp:LinkButton>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                        <tr class="dcTableItem">
                            <td class="last" align="left">
                                级别2
                            </td>
                            <td class="last" align="left">
                                Class2
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <asp:GridView ID="gvCustType2" runat="server" AutoGenerateColumns="false" DataKeyNames="Id"
                                    ShowHeader="false" OnRowUpdating="gvCustRevamp2_Updating" OnRowDeleting="gvCustDelete2_Deleting"
                                    OnRowDataBound="GvCustType_RowDataBound" Width="100%" HeaderStyle-CssClass="dcTableHeader"
                                    RowStyle-CssClass="dcTableAlternatingItem" AlternatingRowStyle-CssClass="dcTableItem">
                                    <Columns>
                                        <asp:BoundField ItemStyle-Width="200" />
                                        <asp:BoundField ItemStyle-Width="210" />
                                        <asp:TemplateField ShowHeader="true" ItemStyle-Width="100">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lbtnRevamp2" runat="server" CausesValidation="False" Text="<%#Resources.NameResource.Btn_Edit%>"
                                                    CssClass="CommandButton" CommandName="Update"></asp:LinkButton>
                                                &nbsp
                                                <asp:LinkButton ID="lbtnDelete2" runat="server" CausesValidation="False" CommandName="Delete"
                                                    Text="<%#Resources.ManageResource.mgr_btnDelete%>" CssClass="CommandButton"></asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <br />
</asp:Content>
